//
//  ONBaseViewController.h
//  HairCutSalon
//
//  Created by Familly on 5/27/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "EGORefreshTableHeaderView.h"

//#import "ONRootViewController.h"
@interface ONBaseViewController : UIViewController {
    // Pull down refresh
    BOOL _reloading;
}
//@property (nonatomic, weak) ONRootViewController *rootViewController;

@property (nonatomic, weak) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (strong, nonatomic) NSMutableArray *dataArray;
@property (strong, nonatomic) EGORefreshTableHeaderView *_refreshHeaderView;

//// the flag which is used to confirm loading next page. if haveNextPage = Yes, loading will show on last cell before show info.
//@property (nonatomic) BOOL haveNextPage;

- (UITableViewCell *)getLoadingCellForTableView:(UITableView *)tableView;
- (void)doneLoadingTableViewData;
- (void)startPullDownRefresh;
- (BOOL)userIsLogin;
- (void)saveAccessToken:(NSString *)accessToken;
- (void)logoutUser;
- (void)showLoginScreen;
-(NSString *)getRequestFiter:(int)typeScreen;

@end
